/*
 * @Author: byron
 * @Date: 2021-10-28 12:52:05
 * @LastEditTime: 2021-12-20 23:17:55
 */
import { request } from '../http'

export const getCategory = (params) => request.get('/categorys', { params })

export const delCategory = (id) => request.delete(`/categorys/deleteCate/${id}`)

export const addCategory = (data) =>
    request.post('/categorys/addCategory', data)

export const updateCateStatus = (data) =>
    request.put('/categorys/updateStatus', data)

export const editCategory = (data) =>
    request.put('/categorys/editCategory', data)
